﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02000D65 RID: 3429
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class PromoteEquipmentCsReq : IMessage<PromoteEquipmentCsReq>, IMessage, IEquatable<PromoteEquipmentCsReq>, IDeepCloneable<PromoteEquipmentCsReq>, IBufferMessage
	{
		// Token: 0x17002B7E RID: 11134
		// (get) Token: 0x060099DA RID: 39386 RVA: 0x0019AEA9 File Offset: 0x001990A9
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<PromoteEquipmentCsReq> Parser
		{
			get
			{
				return PromoteEquipmentCsReq._parser;
			}
		}

		// Token: 0x17002B7F RID: 11135
		// (get) Token: 0x060099DB RID: 39387 RVA: 0x0019AEB0 File Offset: 0x001990B0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return PromoteEquipmentCsReqReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17002B80 RID: 11136
		// (get) Token: 0x060099DC RID: 39388 RVA: 0x0019AEC2 File Offset: 0x001990C2
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return PromoteEquipmentCsReq.Descriptor;
			}
		}

		// Token: 0x060099DD RID: 39389 RVA: 0x0019AEC9 File Offset: 0x001990C9
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public PromoteEquipmentCsReq()
		{
		}

		// Token: 0x060099DE RID: 39390 RVA: 0x0019AED4 File Offset: 0x001990D4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public PromoteEquipmentCsReq(PromoteEquipmentCsReq other) : this()
		{
			this.equipmentUniqueId_ = other.equipmentUniqueId_;
			this.costData_ = ((other.costData_ != null) ? other.costData_.Clone() : null);
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x060099DF RID: 39391 RVA: 0x0019AF20 File Offset: 0x00199120
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public PromoteEquipmentCsReq Clone()
		{
			return new PromoteEquipmentCsReq(this);
		}

		// Token: 0x17002B81 RID: 11137
		// (get) Token: 0x060099E0 RID: 39392 RVA: 0x0019AF28 File Offset: 0x00199128
		// (set) Token: 0x060099E1 RID: 39393 RVA: 0x0019AF30 File Offset: 0x00199130
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint EquipmentUniqueId
		{
			get
			{
				return this.equipmentUniqueId_;
			}
			set
			{
				this.equipmentUniqueId_ = value;
			}
		}

		// Token: 0x17002B82 RID: 11138
		// (get) Token: 0x060099E2 RID: 39394 RVA: 0x0019AF39 File Offset: 0x00199139
		// (set) Token: 0x060099E3 RID: 39395 RVA: 0x0019AF41 File Offset: 0x00199141
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ItemCostData CostData
		{
			get
			{
				return this.costData_;
			}
			set
			{
				this.costData_ = value;
			}
		}

		// Token: 0x060099E4 RID: 39396 RVA: 0x0019AF4A File Offset: 0x0019914A
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as PromoteEquipmentCsReq);
		}

		// Token: 0x060099E5 RID: 39397 RVA: 0x0019AF58 File Offset: 0x00199158
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(PromoteEquipmentCsReq other)
		{
			return other != null && (other == this || (this.EquipmentUniqueId == other.EquipmentUniqueId && object.Equals(this.CostData, other.CostData) && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x060099E6 RID: 39398 RVA: 0x0019AFA8 File Offset: 0x001991A8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.EquipmentUniqueId != 0U)
			{
				num ^= this.EquipmentUniqueId.GetHashCode();
			}
			if (this.costData_ != null)
			{
				num ^= this.CostData.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x060099E7 RID: 39399 RVA: 0x0019AFFD File Offset: 0x001991FD
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x060099E8 RID: 39400 RVA: 0x0019B005 File Offset: 0x00199205
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x060099E9 RID: 39401 RVA: 0x0019B010 File Offset: 0x00199210
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.EquipmentUniqueId != 0U)
			{
				output.WriteRawTag(24);
				output.WriteUInt32(this.EquipmentUniqueId);
			}
			if (this.costData_ != null)
			{
				output.WriteRawTag(106);
				output.WriteMessage(this.CostData);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x060099EA RID: 39402 RVA: 0x0019B06C File Offset: 0x0019926C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.EquipmentUniqueId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.EquipmentUniqueId);
			}
			if (this.costData_ != null)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.CostData);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x060099EB RID: 39403 RVA: 0x0019B0C4 File Offset: 0x001992C4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(PromoteEquipmentCsReq other)
		{
			if (other == null)
			{
				return;
			}
			if (other.EquipmentUniqueId != 0U)
			{
				this.EquipmentUniqueId = other.EquipmentUniqueId;
			}
			if (other.costData_ != null)
			{
				if (this.costData_ == null)
				{
					this.CostData = new ItemCostData();
				}
				this.CostData.MergeFrom(other.CostData);
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x060099EC RID: 39404 RVA: 0x0019B12C File Offset: 0x0019932C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x060099ED RID: 39405 RVA: 0x0019B138 File Offset: 0x00199338
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 24U)
				{
					if (num != 106U)
					{
						this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
					}
					else
					{
						if (this.costData_ == null)
						{
							this.CostData = new ItemCostData();
						}
						input.ReadMessage(this.CostData);
					}
				}
				else
				{
					this.EquipmentUniqueId = input.ReadUInt32();
				}
			}
		}

		// Token: 0x04003B3D RID: 15165
		private static readonly MessageParser<PromoteEquipmentCsReq> _parser = new MessageParser<PromoteEquipmentCsReq>(() => new PromoteEquipmentCsReq());

		// Token: 0x04003B3E RID: 15166
		private UnknownFieldSet _unknownFields;

		// Token: 0x04003B3F RID: 15167
		public const int EquipmentUniqueIdFieldNumber = 3;

		// Token: 0x04003B40 RID: 15168
		private uint equipmentUniqueId_;

		// Token: 0x04003B41 RID: 15169
		public const int CostDataFieldNumber = 13;

		// Token: 0x04003B42 RID: 15170
		private ItemCostData costData_;
	}
}
